﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using THE_WIND_RISES.Common.Dtos;

namespace THE_WIND_RISES.Common.Domans.BasicInformation.Materials
{
    /// <summary>
    /// 物料信息
    /// </summary>
    public class ItemInfo : Entity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int InventoryInfoId { get; set; }

        /// <summary>
        /// 物料/服务
        /// </summary>
        public int ItemServeId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 物料类别
        /// </summary>
        public int ItemTypeId { get; set; }

        /// <summary>
        /// 物料单位
        /// </summary>
        public int ItemUnitId { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string SpecName { get; set; }

        /// <summary>
        /// 规格单位
        /// </summary>
        public int SpecsUnitId { get; set; }

        /// <summary>
        /// 包装规格
        /// </summary>
        public string WrapSpecs { get; set; }

        /// <summary>
        /// 启动质检管理
        /// </summary>
        public bool IsQuality { get; set; }

        /// <summary>
        /// 库存上限
        /// </summary>
        public int InventoryLimit { get; set; }

        /// <summary>
        /// 库存下限
        /// </summary>
        public int InventoryMinimum { get; set; }

        /// <summary>
        /// 存货科目
        /// </summary>
        public string InventoryAccount { get; set; }

        /// <summary>
        /// 销货收入科目
        /// </summary>
        public string SalesRevenueAccount { get; set; }

        /// <summary>
        /// 销货成本科目
        /// </summary>
        public string SoldAccount { get; set; }

        /// <summary>
        /// 物料二维码
        /// </summary>
        public string ItemQRCode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool ItemInfoState { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public bool ReviewStatus { get; set; }=false;
    }
}
